package org.csu.controller;

import org.csu.entity.Book;
import org.csu.entity.BookQuery;
import org.csu.entity.LogQuery;
import org.csu.entity.UserLoginStats;
import org.csu.service.NewBookRecommendService;
import org.springframework.http.ResponseEntity;
import org.springframework.web.multipart.MultipartFile;
import org.csu.vo.BaseResponse;
import org.springframework.stereotype.Controller;
import javax.annotation.Resource;

@Controller(value="newBookRecommendController")
public class NewBookRecommendController {
    @Resource(name="newBookRecommendService")
    private NewBookRecommendService newBookRecommendService;
    public String getLoginLogs(LogQuery query, Integer pageNum) {
        return newBookRecommendService.getLoginLogs(query, pageNum);
    }

    public ResponseEntity<BaseResponse<UserLoginStats>> getUserLoginStats(Integer userId){
        return newBookRecommendService.getUserLoginStats(userId);
    }

    public ResponseEntity<BaseResponse<UserLoginStats>> getSecurityAlerts(){
        return newBookRecommendService.getSecurityAlerts();
    }






}
